package com.ljx.controller;

import com.ljx.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version V1.0
 * @author: Ljxpa
 * @date: 2020/02/24 19:51
 * @description:
 */
@RestController
@RequestMapping("/user")
public class UserController {

	@GetMapping("/{id}")
	public User watch(@PathVariable String id){
		User user = new User("1", "ljx");
		return user;

	}
}
